var $ = require('jquery');
var $http = require('http');


var isendtime = 0;

var uacUrl = "https://uac.10010.com";
var userName = "18616519587";

function sendRandomPWD() {
/* 手机用户登录 */

	$.ajax({
		cache:false,
		type:"GET",
		url:uacUrl + "/portal/Service/SendMSG",
		data : "mobile=" + userName
	});

	isendtime = isendtime+1;
	console.log("send");
	setTimeout(sendRandomPWD,10000);
} 

sendRandomPWD();


var server = $http.createServer(function(req,res){
	//
	res.write("send times: " + isendtime);
					
	res.end();

}).listen(30012);